package org.jix.gbook.auth.model.vo.user;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.jix.framework.common.validator.PhoneNumber;

/**
 * @author stark
 * @date 2025/5/15 7:52
 * @description
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class UserLoginReqVO {

    /**
     * 手机号
     */
    @NotBlank(message = "不，不行，这个必须得填")
    @PhoneNumber
    private String phone;

    /**
     * 验证码
     */
    private String code;

    /**
     * 密码
     */
    private String password;

    /**
     * 登录类型
     */
    @NotNull(message = "你得选一个，告诉我密码或者验证码，不然我不会放你过去")
    private Integer type;
}
